From: Andrew Cooper Date: Mon, 20 Apr 2015 10:49:20 +0000 (+0100) Subject: docs/build: Misc cleanup X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~3385 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=3a1441e862d13e0ec65f3109556c13e98f989f00;p=xen.git docs/build: Misc cleanup * Use $(PANDOC) from ./configure * Swap '-N' for its less-obscure longer form * Don't explicitly echo about markdown. The call to markdown is emitted * Whitespace cleanup Signed-off-by: Andrew Cooper CC: Ian Campbell CC: Ian Jackson CC: Wei Liu Acked-by: Ian Campbell --- diff --git a/docs/Makefile b/docs/Makefile index 854fb50d84..f4c8412fee 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -84,7 +84,7 @@ man5/%.5: man/%.pod.5 Makefile .PHONY: clean clean: $(MAKE) -C figs clean - rm -rf .word_count *.aux *.dvi *.bbl *.blg *.glo *.idx *~ + rm -rf .word_count *.aux *.dvi *.bbl *.blg *.glo *.idx *~ rm -rf *.ilg *.log *.ind *.toc *.bak *.tmp core rm -rf html txt pdf rm -rf man5 @@ -115,7 +115,6 @@ html/index.html: $(DOC_HTML) $(CURDIR)/gen-html-index INDEX html/%.html: %.markdown $(INSTALL_DIR) $(@D) ifdef MARKDOWN - @echo "Running markdown to generate $*.html ... " $(MARKDOWN) $< > $@.tmp ; \ $(call move-if-changed,$@.tmp,$@) else @@ -189,7 +188,7 @@ endif pdf/%.pdf: %.markdown $(INSTALL_DIR) $(@D) - pandoc -N --toc --standalone $< --output $@ + $(PANDOC) --number-sections --toc --standalone $< --output $@ ifeq (,$(findstring clean,$(MAKECMDGOALS))) $(XEN_ROOT)/config/Docs.mk: